var express = require('express');
var router = express.Router();
var videoController = require("../../api/v2.0/admin/video_admin_controller");


router.get('/', videoController.getListPage);//查询视频

router.get('/:id', videoController.getVideoById);//根据id查询

router.post('/', videoController.addVideos);//添加视频

router.post('/:id', videoController.updateVideos);//修改视频

router.delete('/', videoController.deleteVideo);//删除视频

router.put('/:id', videoController.videoSetTop);//置顶

module.exports = router;